package cn.com.server.entity;

import java.io.Serializable;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 用户组表
 * </p>
 *
 * @author qing
 * @since 2017-11-22
 */
public class Group implements Serializable{

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 用户组名
     */
	private String name;
    /**
     * 状态，1正常
     */
	private Integer status;
    /**
     * 备注
     */
	private String remark;
    /**
     * 创建时间
     */
	private Date createTime;
    /**
     * 允许注册用户的选择的角色组
     */
	private Boolean registerFlg;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",locale="zh",timezone = "GMT+8")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Boolean getRegisterFlg() {
		return registerFlg;
	}

	public void setRegisterFlg(Boolean registerFlg) {
		this.registerFlg = registerFlg;
	}

	@Override
	public String toString() {
		return "Group{" +
			"id=" + id +
			", name=" + name +
			", status=" + status +
			", remark=" + remark +
			", createTime=" + createTime +
			", registerFlg=" + registerFlg +
			"}";
	}
}